package com.dingding.common.core.config;

import java.math.BigDecimal;

/**
* @ClassName: ServiceCode 
* @Description: 业务逻辑常量类 
* @author yhq 
* @date 2015-10-20 下午04:31:12
 */
public class ServiceCode {
	
	/**
	 * 查询支付结果（queryOrderResult）
	 */
	public static final int ORDER_RESULT_SUCCESS = 1; //订单支付成功
	
	public static final int ORDER_RESULT_FAIL = 2; //订单支付失败
	
	
	//待抢单
	public static final int ORDER_STATUS_WAITING = 1;
	//待支付
	public static final int ORDER_STATUS_PAY = 2;
	//已支付
	public static final int ORDER_STATUS_PAID = 3;
	//已完成
	public static final int ORDER_STATUS_COMPLETE = 4;
	//已取消
	public static final int ORDER_STATUS_CANCEL = 5;

	/**明细类型开始**/
	
	//收入
	public static final int DETAIL_STATUS_INCOME = 1;
	//支出
	public static final int DETAIL_STATUS_EXPENDITURE = 2;
	//提现
	public static final int DETAIL_STATUS_WITHDRAWALS = 3;
	//取消
	public static final int DETAIL_STATUS_CANCEL = 4;
	
	
	/**明细类型结束**/
	
	/**提现开始**/
	
	//提现中
	public static final int DEPOSIT_STATUS_IN = 1;
	
	//提现成功
	public static final int DEPOSIT_STATUS_SUCCESS = 2;
	
	//提现失败
	public static final int DEPOSIT_STATUS_FAIL = 3;
	
	/**提现结束**/
	
	
	//单图片上传
	public static final String UPLOAD_SINGLE_MODULAR = "single"; 
	//多图片上传
	public static final String UPLOAD_MANEY_MULTIPLE = "Multiple";
	
	//用户抢单接口名
	public static final String COMPETITIVE_ORDER = "competitiveOrder";
	//用户抢单推送接口
	public static final String COMPETITIVE_ORDER_PUSH = "competitiveOrderPush";
	
	//乘客支付
	public static final String PASSENGER_PAY = "passengerPayPush";
	//确认到达
	public static final String CONFIRM_ARRIVAL = "confirmArrivalPush";
	//订单取消
	public static final String CANEL_ORDER = "cancelOrderPush";
	//用户登录
	public static final String USER_LOGIN = "userLoginPush";
	
	//同城推送
	public static final String CURRENTCITY_PUSH = "currentCityPush";
	
	//正则   中文，英文符号，字母，数字
	public static final String NICK_NAME_CODE = "^[\u4e00-\u9fa5a-zA-Z0-9~!/@#$%^&*()-_=+\\|[{}];:\'\",<.>/?]+$";
	
	//正则 正确的手机号码
	public static final String PHONE_NUM_CODE = "^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1})|(14[0-9]{1}))+\\d{8})";
	
	//车主下单用户
	public static final int DRIVER_PLACE_AN_ORDER = 1;
	//乘客下单用户
	public static final int PASSENGER_PLACE_AN_ORDER = 2;
	
	//获取几公里的范围
	public static final BigDecimal NEARBY_RANGE = new BigDecimal(5);
	
	//搭车计费规则 RMB:叮币
	public static final double EXCHANGE_RULE = 1;
	
	//每人所交保险费用
	public static final double INSURANCE = 0;
}
